﻿<u:UObject x:Class="UTable.Tests.UScanViewTest"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:u="clr-namespace:UTable.Objects.Controls;assembly=UTable.Core"
    xmlns:uc="clr-namespace:UTable.Objects.Controls;assembly=UTable.Objects"
    Height="400" Width="600">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="200" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <StackPanel Grid.Column="0">
            <TextBlock Margin="5, 60, 5, 5" Text="Direction:" FontSize="16" Foreground="White"/>
            <u:UComboBox x:Name="DirectionBox" SelectionChanged="DirectionBox_SelectionChanged" SelectedIndex="0" Foreground="White" FontSize="16" Margin="5">
                <u:UComboBoxItem>LeftRight</u:UComboBoxItem>
                <u:UComboBoxItem>TopDown</u:UComboBoxItem>
            </u:UComboBox>
        </StackPanel>
        <Grid Grid.Column="1">
            <Grid.RowDefinitions>
                <RowDefinition Height="326*" />
                <RowDefinition Height="70" />
            </Grid.RowDefinitions>
            <uc:UScanView Grid.Column="1" x:Name="ScanView">
                <Grid Background="Firebrick">
                    <TextBlock FontSize="30" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White">Page 0</TextBlock>
                </Grid>
                <Grid Background="Blue">
                    <TextBlock FontSize="30" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White">Page 1</TextBlock>
                </Grid>
                <Grid Background="Green">
                    <TextBlock FontSize="30" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White">Page 2</TextBlock>
                </Grid>
                <Grid Background="Yellow">
                    <TextBlock FontSize="30" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White">Page 3</TextBlock>
                </Grid>
                <Grid Background="Pink">
                    <TextBlock FontSize="30" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White">Page 4</TextBlock>
                </Grid>
            </uc:UScanView>
            <u:USlider Grid.Row="1" Minimum="0" Maximum="4" x:Name="ItemSlider" 
                       ValueChanged="ItemSlider_ValueChanged" Value="0" Margin="5, 20, 5, 5" IsSnapToTickEnabled="True"/>
        </Grid>
    </Grid>
</u:UObject>
